f = open("3_30_P1591.txt", "w")
f.write("string temps[1024] = {\n")
f.write("    \"0\",\n")
sum = 1
for i in range(1, 1001):
    f.write("    \"")
    sum *= i
    f.write(str(sum))
    f.write("\",\n")
    pass
f.write("};")
f.close()
